import random
computer_num = random.randint(1,100)
while True:
    person_num = int(input('请输入数字'))
    if person_num < computer_num:
        print('猜小了')
    elif person_num > computer_num:
        print('猜大了')
    elif person_num  == computer_num:
        print('答对了')
        break

